package com.exception.demo02;
//自定义的异常类
public class MyException extends Exception{
    //传递数》10；
    private int detail;

    public MyException(int a) {
        this.detail=a;

    }
    //toString

    @Override
    public String toString() {
        return "MyException{"+"detail="+detail+"}";
    }
}
